package info.wangyuan.agent.service.curd;

import com.baomidou.mybatisplus.extension.service.IService;
import info.wangyuan.agent.entity.po.KnowledgeBase;
import org.springframework.http.ResponseEntity;
import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody;

import java.io.IOException;
import java.util.List;

/**
 * 知识库服务
 *
 * @author Albert
 * @since 2025-08-17 03:45:26
 */
public interface KnowledgeBaseService extends IService<KnowledgeBase> {

    void canAdd(KnowledgeBase kb);

    void canUpdate(KnowledgeBase kb);

    void canDelete(Integer id);

    ResponseEntity<StreamingResponseBody> downloadFolderZip(Integer id) throws IOException;

    void checkKnowledgeBasesExist(List<Integer> knowledgeBaseIds);
}
